package com.xiaoshangkou.hellopra.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.List;

/**
 * 社区用户
 */
@Data
public class Member {
    @TableId
    private Integer mid;//主键id
    private Integer uid;//用户组id
    private String username;//用户名
    private String password;//密码
    private String personalMessage;//个性签名
    private String sex;//性别
    private String profilePicture;//头像
    private String email;//邮箱
    private boolean active;//是否激活
    private String activeCode;//激活码
    private boolean blackHome;//是否进入小黑屋
    @TableField(exist = false)
    private List<Post> postList;//用户发表的帖子
    @TableField(exist = false)
    private List<Comment> commentList;//用户发表的评论
    @TableField(exist = false)
    private UserGroup userGroup; //用户组
}
